import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/fonts/iconfont.css'
import './assets/css/base.css'

import {
  Button, Tabbar, TabbarItem, Icon, Sticky, Search, Swipe, SwipeItem
  , Lazyload, Grid, GridItem, NoticeBar, CountDown, Divider, List, PullRefresh, NavBar, GoodsAction, GoodsActionIcon,
  GoodsActionButton, Popup, Card, Stepper, Circle, Field, Form, SubmitBar, Checkbox, SwipeCell, Cell, Switch, Area,
  CellGroup, AddressList, ContactCard
} from 'vant'

import loading from './plugins/Loading'
Vue.use(loading)
Vue.use(Button)
  .use(Tabbar)
  .use(TabbarItem)
  .use(Icon)
  .use(Sticky)
  .use(Search)
  .use(Swipe)
  .use(SwipeItem)
  .use(Grid)
  .use(GridItem)
  .use(NoticeBar)
  .use(CountDown)
  .use(Divider)
  .use(List)
  .use(PullRefresh)
  .use(NavBar)
  .use(GoodsAction)
  .use(GoodsActionIcon)
  .use(GoodsActionButton)
  .use(Popup)
  .use(Card)
  .use(Stepper)
  .use(Circle)
  .use(Field)
  .use(Form)
  .use(Form)
  .use(SubmitBar)
  .use(Checkbox)
  .use(SwipeCell)
  .use(Search)
  .use(Cell)
  .use(Switch)
  .use(Area)
  .use(CellGroup)
  .use(AddressList)
  .use(ContactCard)
  .use(Lazyload, {
    loading: require('./assets/pic/pic2.jpg'),
    error: require('./assets/pic/pic3.jpg'),
    preload: '1'
  })

/* Vue.prototype.$http =axios //挂载到构造函数的原型上了 任意地方可以使用
axios.defaults.baseURL = "/api"; */
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
